From: Brendan William Date: Wed, 9 Aug 2023 17:40:35 +0000 (-0700) Subject: weather: Prevent setting Geoclue source as location name X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~320^2^2~100 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=ae86b58d59bb80e6d104debae7c34a890563c321;p=gnome-shell.git weather: Prevent setting Geoclue source as location name Prior to Geoclue v2.7, the location description did not seem to ever be set. Now, the source used to determine the location is set as the description. This can result in the location name in dateMenu to be set as "WiFi", "GeoIP", etc., since we relay the description as the location name to GWeather. Instead, pass an empty string so GWeather continues to set the location name itself. Part-of: --- diff --git a/js/misc/weather.js b/js/misc/weather.js index aba5fd505..11fcdffbd 100644 --- a/js/misc/weather.js +++ b/js/misc/weather.js @@ -270,8 +270,8 @@ export class WeatherClient extends Signals.EventEmitter { _onGClueLocationChanged() { let geoLocation = this._gclueService.location; - let location = GWeather.Location.new_detached( - geoLocation.description, + // Provide empty name so GWeather sets location name + const location = GWeather.Location.new_detached('', null, geoLocation.latitude, geoLocation.longitude);